Controlling Your Application With The ClientProtector

SoftwareShield ClientProtector COM Component > Controlling Your Application With The ClientProtector

## Controlling Your Application With The ClientProtector

Before reading this section, you should understand the basics of how to Link To The ClientProtector In Your Application.

You can control your application with the ClientProtector component easily using the interface provided and interpreting the results of function calls by inspecting the value of the return_code parameter that is included in almost all function calls. Further control is provided by connecting to the ClientProtector events and responding (as necessary) during the processing of a ClientProtector call.

To control your application you must perform the following mandatory steps:

1. Link to the SSCProt.dll COM server and create an instance of the ClientProtector component, connecting any event handlers you may need. This is covered in the sections Linking To ClientProtector In Your Application and Creating a ClientProtector COM Event Sink.

2. At run-time, one of the first things your application must do is Initialize The License In Your Application using the ClientProtector.

3. Finally, you must interpret the return_code value from the StartUp call to make an initial determination about the state of your license and take any action necessary.

You will need to know How To Get Information From ClientProtector About The License.

During your programs execution after the license initialization, you will need to interact with the license through the ClientProtector. The ClientProtector provides an rich interface giving you numerous functions to operate on the license, from inputting an Activation Code to control some feature of your license, to deactivating it in order to facilitate machine locked license "moves".